// Script assets have changed for v2.3.0 see
// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information
function fisting(b){
	if (instance_number(o_Fist)<=1){
	with (instance_create_layer(x,y,"bullets",o_Fist))
		{
		oe=instance_nearest(x,y,o_Enemy)
		ex = oe.x
		ey = oe.y


		basex = o_Hero.x-ex
		basey = o_Hero.y-ey
		if sign(basex)>0 
		{
			x =o_Hero.x +  (basex/2)*(-1)
		} else {x = o_Hero.x + (basex/2)*(-1)}
		if sign(basey)>0 
		{
			y =o_Hero.y+ (basey/2)*(-1)
		} else {y = o_Hero.y+(basey/2)*(-1)}
		}
	}
}